﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
using YiSha.Util;

namespace YiSha.Entity.QixingManage
{
    [Table("CarPreBookDetail")]
    public class CarPreBookDetail
    {
        [JsonConverter(typeof(StringJsonConverter))]
        public long? Id { get; set; }
        /// <summary>
        /// 预约车信息表ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? CarPreBookId { get; set; }
        /// <summary>
        /// 车信息
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 车架号
        /// </summary>
        public string VIN { get; set; }
        /// <summary>
        /// 型号
        /// </summary>
        public string Model { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }
        /// <summary>
        /// 上传附件
        /// </summary>
        public string Files { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? CreateTime { get; set; }
        /// <summary>
        /// 创建人ID
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? CreateUserId { get; set; }
        /// <summary>
        /// 创建人姓名
        /// </summary>
        public string CreateUserName { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? ModifyTime { get; set; }
        /// <summary>
        /// 修改人iD
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? ModifyUserId { get; set; }
        /// <summary>
        /// 修改人姓名
        /// </summary>
        public string ModifyUserName { get; set; }
        /// <summary>
        /// 还车门店id
        /// </summary>
        [JsonConverter(typeof(StringJsonConverter))]
        public long? CarReturnShopId { get; set; }

        /// <summary>
        /// 还车门店名称
        /// </summary>
        public string CarReturnShopName { get; set; }

        /// <summary>
        /// 还车时间
        /// </summary>
        [JsonConverter(typeof(DateTimeJsonConverter))]
        public DateTime? CarReturnTime { get; set; }
    }
}
